package com.hx.util.md5;

import java.security.SecureRandom;

/**
 *
 * @author Pei Shaw
 */
public class DaoSecureRandom extends SecureRandom {

    @Override
    public byte[] generateSeed(int numBytes) {
        byte[] SaltByteArray = {0x49, 0x76, 0x61, 0x6e, 0x20, 0x4d, 0x65, 0x64, 0x76, 0x65, 0x64, 0x65, 0x76};
        return SaltByteArray;
    }

    @Override
    public synchronized void nextBytes(byte[] bytes) {
        bytes = new byte[]{0x49, 0x76, 0x61, 0x6e, 0x20, 0x4d, 0x65, 0x64, 0x76, 0x65, 0x64, 0x65, 0x76};
    }
}